
<?php 
if (is_page()) {
    $lanmuimg= wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
    $lanmuimg=$lanmuimg[0];
    $show_title=0;
    // var_dump($lanmuimg);
}elseif (is_single() ||is_tag()) {
    $show_title=0;
    $lanmuimg=get_template_directory_uri()."/assets/images/article-bg.png";
}else{
    $lanmuimg=ifan_taxonomy_image_url();

    $show_title=1;

    $post_type = @$post->post_type;
$postid=get_queried_object_id();
$postname=@get_term( get_queried_object_id(), $taxonomy );
// var_dump($postname);
    $bigtitle=$postname->name;
    $smalltitle=$postname->description;
}


 ?>











<section class="single-page-title-area" data-background="<?php echo $lanmuimg ?>" style="background-image: url('<?php echo $lanmuimg ?>');">
        <div class="auto-container">
            <div class="row justify-content-around">
                <div class="col-lg-6 col-md-6 col-sm-12 col-12">
                    <div class="single-page-title">
                    <?php 
                    if ($show_title==1) {
                        echo '<h6>'.$smalltitle.'</h6><span></span><h2>'.$bigtitle.'</h2>';
                    }
                     ?>

                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12 col-12">
                    <ol class="breadcrumb">
                      <?php ifan_the_breadcrumbs(); ?>
                    </ol>
                </div>
            </div>
            <!-- end row-->
        </div>
    </section>